#include "Decorator.h"

#include <iostream>
using namespace std;

void test()
{
    AbstractHero* hero = new HeroA();
    hero->showStatus();

    cout << "--------------------" << endl;

    hero = new KuangtuEquipment(hero);
    hero->showStatus();

    hero->_At = 33;
    hero = new WujinzhirenEquipment(hero);
    hero->showStatus();
}

int main()
{
    test();
    return 0;
}